#include "Resource.h"

using namespace SolidityEngine;

Resource::Resource(const std::string& path, const std::string& name):
    Object(name),
    path(path),
    count(0)
{
}

Resource::~Resource(){};

///Loads the resource, and returns a pointer to it
void Resource::Load(){
    count++;
}

void Resource::Unload(){
    count--;
    if(count<1)
    {
        //do someting to free  the resource
    }
}

///Clone the resource
Resource* Resource::_Clone(){
    return new Resource(*this);
}

